﻿using System;
using Microsoft.Extensions.Configuration;

namespace NetCoreConfigIntroduce.Options
{
    public class Option1
    {
        public Option1(IConfiguration configuration)
        {
            Name = configuration["Name"];
            ExpiredTime = DateTime.Parse(configuration["ExpiredTime"]);
        }

        public string Name { get; set; }
        public DateTime ExpiredTime { get; set; }
    }
}
